import scrapy
from . import dmSpider

# 定义 hanime1 同人作品爬虫程式, scrapy crawl coterieSpider -o coterie.csv
class CoteriespiderSpider(dmSpider.DmspiderSpider):
    name = "coterieSpider"
    allowed_domains = ["hanime1.me"]

    debug_mode = False
    run_mode = "" # "<<TEST>>"
    title = "同人作品"
    topic_name = "coterie"
    start_url = 'https://hanime1.me/search?genre=同人作品'
    list_selector = 'div.search-doujin-videos > a'
    image_selector = 'div.card-mobile-panel > div > img:nth-last-child(1)::attr(src)'

    # 静态指定爬虫页面（二选一）
    #start_urls = ['https://hanime1.me/search?genre=同人作品&page=1']
